package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.Set;

public interface PermissionDao {
    Set<Permission> findByRoleId(Integer userId);

    //权限分页查询
    Page<Permission> findByCondition(String queryString);

    //按ID查询
    Permission findById(Integer id);

    //添加权限
    void add(Permission permission);

    void delete(Integer id);

    void edit(Permission permission);

}
